<?php
include "connect.php";
include "messa.php";

$Messa = new Messa();
$Messa->setId($_POST['id']);
$Messa->setName($_POST['name']);
$Messa->setEmail($_POST['email']);
$Messa->setTell($_POST['tell']);
$Messa->setContent($_POST['content']);
$Messa->setAddTime($_POST['date']);
//更新语句
$sql="update messa set name='".$Messa->getName()."',email='".$Messa->getEmail()."',tell='".$Messa->getTell()."',content='".$Messa->getContent()."',add_time='".$Messa->getAddTime()."' where id=".$Messa->getId();
//执行语句
$resu=mysqli_query($link,$sql);